Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(insights): handle negation property in cohort property filters #25691

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

skoob13
Copy link
Contributor

@skoob13 skoob13 commented Oct 18, 2024

Problem

Legacy funnels can have a negation property in property filters for cohorts. We already fixed that on backend in this PR, but it's still a problem when a query is converted on frontend returning a cryptic exception:

Screenshot 2024-10-18 at 17 55 16

Changes

Mirror the negation cleaning on frontend.

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Added more tests.

@skoob13 skoob13 requested review from jurajmajerik and a team October 18, 2024 16:00
Copy link
Contributor

github-actions bot commented Oct 18, 2024

Size Change: 0 B

Total Size: 1.14 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.14 MB

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

4 snapshot changes in total. 0 added, 4 modified, 0 deleted:

  • chromium: 0 added, 4 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

@aspicer aspicer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@skoob13 skoob13 merged commit a585c33 into master Oct 18, 2024
94 checks passed
@skoob13 skoob13 deleted the fix/clean-negation-property branch October 18, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants